@foreach (['danger','info','success'] as $item)
    @if(session()->has($item))
        <div
            class="bg-green-200 px-6 py-4 mx-2 rounded-md text-xs flex items-center mx-auto w-3/4 xl:w-2/4"
        >
            <svg
                viewBox="0 0 24 24"
                class="text-green-600 w-5 h-5 sm:w-5 sm:h-5 mr-3"
            >
                <path
                    fill="currentColor"
                    d="M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"
                ></path>
            </svg>
            <span class="text-green-800">  {{ session()->get($item) }} </span>
        </div>
    @endif
@endforeach
